package com.freedom.sql.jdbc.request;

import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;

import com.alibaba.druid.sql.ast.statement.SQLShowTablesStatement;
import com.freedom.sql.jdbc.netty.MyNioSocketChannel;
import com.freedom.sql.jdbc.response.TablePacket;

public class ShowFullTablesPacket {
	@SuppressWarnings("unused")
	private static final Logger logger = LogManager.getLogger(ShowFullTablesPacket.class);
	private MyNioSocketChannel channel;
	private SQLShowTablesStatement statement;
	private int packetSeq;

	public ShowFullTablesPacket(int _packetSeq, MyNioSocketChannel _channel, SQLShowTablesStatement _content) {
		packetSeq = _packetSeq;
		channel = _channel;
		statement = _content;
	}

	public void read() throws Exception {
		// 开始处理,发送表格给client
		new TablePacket(packetSeq, channel, statement).write();
	}
}
